package org.dromara.business.domain.vo;

import java.math.BigDecimal;
import java.util.Date;

import org.dromara.business.domain.RebateRecord;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 返利记录视图对象 app_rebate_records
 *
 * @author Eric
 * @date 2025-09-05
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = RebateRecord.class)
public class RebateRecordVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @ExcelProperty(value = "记录ID")
    private Long id;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;
    private String walletAddress;

    /**
     * 质押记录ID
     */
    @ExcelProperty(value = "质押记录ID")
    private Long stakingId;

    /**
     * 返利金额
     */
    @ExcelProperty(value = "返利金额")
    private BigDecimal rebateAmount;

    /**
     * 返利日期
     */
    @ExcelProperty(value = "返利日期")
    private Date rebateDate;

    /**
     * 第几天
     */
    @ExcelProperty(value = "第几天")
    private Integer dayNumber;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "rebate_records_status")
    private Integer status;

    /**
     * 奖励类型：1-产品收益，2-等级返利
     */
    @ExcelProperty(value = "奖励类型：1-产品收益，2-等级返利")
    private Integer rewardType;

    /**
     * 计算基数（用于计算的本金）
     */
    @ExcelProperty(value = "计算基数", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "用于计算的本金")
    private BigDecimal baseAmount;

    /**
     * 奖励比例
     */
    @ExcelProperty(value = "奖励比例")
    private BigDecimal rewardRate;

    private String productName;
    private String title;
    private String remark;

}
